import ActionSheet from "./utils/app-action-sheet/app-action-sheet"
import Modal from "./utils/app-modal/app-modal"
import Prompt from "./utils/app-prompt/app-prompt"
import Loading from "./utils/app-loading/app-loading"
import Notify from "./utils/app-notify/app-notify"
import Popup from "./utils/app-popup/app-popup"
import Tip from "./utils/app-tip/app-tip"

export const UtilsComponents = {
    install(v: any, opt: any) {
        v.prototype.$actionSheet = ActionSheet.getInstance();
        v.prototype.$modal = Modal.getInstance();
        v.prototype.$prompt = Prompt.getInstance();
        v.prototype.$loading = Loading.getInstance();
        v.prototype.$notifyMessage = Notify.getInstance();
        v.prototype.$popup = Popup.getInstance();
        v.prototype.$tip = Tip.getInstance();
    }
};